{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:head" />
<!-- 菜单区域  -->

<!-- 主页面开始 -->
<div id="main" class="main" >

<!-- 主体内容  -->
<div class="content" >
<div class="title">
    <?php
        if('' == $_GET['state'] || 'now' == $_GET['state']) {
            echo "◆当前项目&nbsp;&nbsp;";
        }else {
            echo "<a href=\"?state=now\">◇当前项目</a>&nbsp;&nbsp;";
        }
        
        if('auditing' == $_GET['state']) {
            echo "◆审核中的项目&nbsp;&nbsp;";
        }else {
            echo "<a href=\"?state=auditing\">◇审核中的项目</a>&nbsp;&nbsp;";
        }
        
        if('pass' == $_GET['state']) {
            echo "◆未通过的项目&nbsp;&nbsp;";
        }else {
            echo "<a href=\"?state=pass\">◇未通过的项目</a>&nbsp;&nbsp;";
        }
        
        if('success' == $_GET['state']) {
            echo "◆成功项目&nbsp;&nbsp;";
        }else {
            echo "<a href=\"?state=success\">◇成功项目</a>&nbsp;&nbsp;";
        }
    ?>
</div>
<!--  功能操作区域  -->
<div class="operate" >
<html:imageBtn name="add" value="新增" click="add()" style="impBtn hMargin fLeft shadow" />
<!-- 查询区域 -->
<div class="fRig">
<form method='post' action="__URL__">
<div class="fLeft"><span id="key"><input type="text" name="name" title="组名" class="medium" ></span></div>
<html:imageBtn type="submit" name="search" value="查询" style="impBtn hMargin fLeft shadow" />
</div>
<!-- 高级查询区域 -->
<div  id="searchM" class=" none search cBoth" >
</div>
</form>
</div>
<!-- 功能操作区域结束 -->

<!-- 列表显示区域  -->
<script language="javascript">
function target(id){
    window.open('http://www.tuan001.com/team/'+id+'.html','_blank')
}
function team_detail(id){
    Boxy.DEFAULTS.title = "团购详情";
    Boxy.DEFAULTS.modal = true;
    Boxy.load(URL+"/detail/id/"+id, {cache:true});
}

</script>
<div class="list" >
<html:list id="checkList" name="team" style="list"  action="true" datasource="list" show="id:编号|50,product:团购名称:target,group_id|get_group_name:类别,begin_time|get_date=$team['end_time']:日期,now_number|get_number=$team['min_number']:成交,team_price|get_price=$team['market_price']:价格" actionlist="team_detail:详情:id,edit:编辑:id,download:下载:id" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->

